package com.medusa.aps.business.model.constant;

public interface RedisConstants {

    /**
     * 分布式锁key
     */
    String REDIS_LOCK = "distributed:lock:key";

    long PLANING_EXPIRE_TIME = 86400;

    String PLANING_OPERATION = "planning:operation";

    /**
     * 用户角色分布式锁 key
     */
    String USER_ROLE_MENU_LOCK_KEY = "aps:user:role:menu:lock:key";

    /**
     * 客户信息分布式锁 key
     */
    String CUSTOMER_LOCK_KEY = "aps:customer:lock:key";

    /**
     * 工作车间信息分布式锁 key
     */
    String WORK_SHOP_LOCK_KEY = "aps:work:shop:lock:key";

    /**
     * 辅助设备信息分布式锁 key
     */
    String AUXILIARY_EQUIPMENT_LOCK_KEY = "aps:auxiliary:equipment:lock:key";

    /**
     * 工艺路线
     */
    String PROCESS_ROUTE_LOCK_KEY = "aps:process:route:lock:key";
    /**
     * 工序
     */
    String WORKING_PROCEDURE_LOCK_KEY = "aps:working:procedure:lock:key";
    /**
     * BOM
     */
    String BOM_LOCK_KEY = "aps:bom:lock:key";
    /**
     * 班制
     */
    String CLASS_SYSTEM_LOCK_KEY = "aps:class:system:lock:key";
    /**
     * 班制生成工作日历
     */
    String WORKING_CALENDAR_LOCK_KEY = "aps:working:calendar:lock:key";
    /**
     * 班制生成工作日历失败key
     */
    String WORKING_CALENDAR_FAIL_LOCK_KEY = "aps:working:calendar:fail:lock:key";
    /**
     * 客户
     */
    String CUSTOMER_INFORMATION_LOCK_KEY = "aps:customer:information:lock:key";
    /**
     * 物料
     */
    String MATERIAL_LOCK_KEY = "aps:material:lock:key";
    /**
     * 物料分类
     */
    String MATERIAL_CLASSIFICATION_LOCK_KEY = "aps:material:classification:lock:key";
    /**
     * 供应商
     */
    String SUPPLIER_LOCK_KEY = "aps:supplier:lock:key";
    /**
     * 车间
     */
    String WORKSHOP_LOCK_KEY = "aps:workshop:lock:key";
    /**
     * 生产报工
     */
    String BOARD_MANAGE_LOCK_KEY = "aps:board:manage:lock:key";
    /**
     * 辅助资源
     */
    String AUXILIARY_DATA_LOCK_KEY = "aps:auxiliary:data:lock:key";
    /**
     * 设备
     */
    String EQUIPMENT_LOCK_KEY = "aps:equipment:lock:key";
    /**
     * 订单
     */
    String ORDER_LOCK_KEY = "aps:order:lock:key";
    /**
     * 排程
     */
    String MRP_PLANNING_OPERATION_LOCK_KEY = "aps:mrp:planning:operation:lock:key";

    /**
     * 设备任务看板 分布式锁 key
     */
    String EQUIPMENT_PRODUCTION_LOCK_KEY = "aps:equipment:production:lock:key";

    /**
     * 车间生产定时任务 分布式锁 key
     */
    String WORKSHOP_PRODUCTION_LOCK_KEY = "aps:workshop:production:lock:key";

    /**
     * 物料单位
     */
    String MATERIAL_UNIT_LOCK_KEY = "aps:material:unit:lock:key";
}
